package com.zhuxi.filter;

public class MethodCost {

    private String methodName;//方法名

    private long costTime;//方法耗时（毫秒）

    private long endTime;//方法执行结束时间

    public MethodCost(String methodName, long costTime, long endTime) {
        this.methodName = methodName;
        this.costTime = costTime;
        this.endTime = endTime;
    }

    public String getMethodName() {
        return methodName;
    }

    public void setMethodName(String methodName) {
        this.methodName = methodName;
    }

    public long getCostTime() {
        return costTime;
    }

    public void setCostTime(long costTime) {
        this.costTime = costTime;
    }

    public long getEndTime() {
        return endTime;
    }

    public void setEndTime(long endTime) {
        this.endTime = endTime;
    }

    @Override
    public String toString() {
        return "MethodCost{" +
                "methodName='" + methodName + '\'' +
                ", costTime=" + costTime +
                ", endTime=" + endTime +
                '}';
    }
}
